package net.zjitc.printer;

/**
 * @Author admin
 * @Date 2019/3/15 11:21
 */
public class CanonPrinter extends Printer{
    public void clean(){
        System.out.println("清理");
    }


    @Override
    public void close() {
        clean();
        /* 子类重写了父类的close方法，
        * 子类中又想调用父类的close方法，
        * 加super*/
        super.close();
    }


}
